﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Settings
{
	/// <summary>
	/// Configuration des modes de reglement
	/// </summary>
	[Serializable]
	public class PaymentSettings
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="PaymentSettings"/> class.
		/// </summary>
		public PaymentSettings()
		{
			// AllowedByAccountPaymentModeIdList = new List<int>();
			DisableRecycleOnExport = false;
			ApplyLatestOrderedPrice = false;
			AllowedPaymentList = new List<string>();
		}

		/// <summary>
		/// Retourne la liste des payments autorisés
		/// pour le mode de reglement "en compte".
		/// </summary>
		/// <value>The allowed by account payment mode id list.</value>
		public List<string> AllowedPaymentList { get; set; }

		/// <summary>
		/// Desactivation de la DEEE dans le cas d'un export
		/// </summary>
		/// <value>
		/// 	<c>true</c> if [disable recycle on export]; otherwise, <c>false</c>.
		/// </value>
		public bool DisableRecycleOnExport { get; set; }

		/// <summary>
		/// Applique le dernier tarif de la dernière commande
		/// </summary>
		public bool ApplyLatestOrderedPrice { get; set; }

		/// <summary>
		/// Vue pour le refus de paiement (override)
		/// </summary>
		public string DeclinedView { get; set; }

		/// <summary>
		/// Vue l'annulation de paiement (override)
		/// </summary>
		public string CanceledView { get; set; }

		/// <summary>
		/// Vue pour l'erreur de paiement (override)
		/// </summary>
		public string ErrorView { get; set; }
	}
}
